package com.konleno.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by jamesmarva on 12/09/2017.
 */
@Controller
@RequestMapping(value = "med/")
public class MedicalController {

//    @RequestMapping(value = "patientSummery", method = RequestMethod.GET)
//    public ModelAndView patientSummery() {
//        ModelAndView modelAndView = new ModelAndView();
//        System.out.println("================= asdfjs;dfasjdfaskdfjasdklf =====================");
//        modelAndView.add
//        modelAndView.setViewName("redirect:patientSummery.jsp");
//        return modelAndView;
//    }

    @RequestMapping(value = "patient", method = RequestMethod.GET)
    public String patientSummery() {
        ModelAndView modelAndView = new ModelAndView();
        System.out.println("================= asdfjs;dfasjdfaskdfjasdklf =====================");
//        modelAndView.add
//        modelAndView.setViewName("redirect:patientSummery.jsp");
        return "medical/patientSummery";
    }

}
